import { RouteConfig } from "vue-router";
import Layout from "@/layout/index.vue";

const order: RouteConfig = {
  path: "/order",
  component: Layout,
  redirect: "/order/index",
  name: "Order",
  meta: {
    title: "order",
    icon: "iconfont icon-userstoryicon",
    authrole: 'system_admin',
    routerRuleName: "Order"
  },
  children: [
    {
      path: "index",
      component: () => import("@/views/order/index.vue"),
      name: "Order",
      meta: {
        title: "oldOrder",
        noCache: true,
        authrole: 'system_admin',
        routerRuleName: "OrderList"
      }
    },
      
    {
      path: "horizionIndex",
      component: () => import("@/views/order/orderTaskManage/horizionOrder/index.vue"),
      name: "horizionIndex",
      meta: {
        title: "horizionIndex",
        noCache: true,
        authrole: 'system_admin',
        routerRuleName: "horizionIndex"
      }
    },
    {
      path: "daasIndex",
      component: () => import("@/views/order/orderTaskManage/daasOrder/index.vue"),
      name: "daasIndex",
      meta: {
        title: "daasIndex",
        noCache: true,
        authrole: 'system_admin',
        routerRuleName: "daasIndex"
      }
    },
      
    {
      path: "orderManage",
			component: () => import("@/views/order/orderManage.vue"),
			name: "OrderManage",
			meta: {
				title: 'orderManage',
				noCache: true,
				hidden: true,
        type: "/order/index", /**type用于页面左侧菜单的路由active效果判断 */
        authrole: 'system_admin'
			}
    },
    {
      path: "orderMassage",
			component: () => import("@/views/order/orderMassage.vue"),
			name: "OrderMassage",
			meta: {
				title: 'orderMassage',
				noCache: true,
				hidden: true,
        type: "/order/index", /**type用于页面左侧菜单的路由active效果判断 */
        authrole: 'system_admin'
			}
    },
    {
      path: "HorizionOrderMessage",
      component: () => import("@/views/order/orderTaskManage/horizionOrder/orderMessage.vue"),
      name: "HorizionOrderMessage",
      meta: {
        title: 'orderMassage',
        noCache: true,
        hidden: true,
        type: "/order/horizionIndex", /**type用于页面左侧菜单的路由active效果判断 */
        authrole: 'system_admin'
      }
    },
    {
      path: "DaasOrderMessage",
      component: () => import("@/views/order/orderTaskManage/daasOrder/daasOrderMessage.vue"),
      name: "DaasOrderMessage",
      meta: {
        title: 'orderMassage',
        noCache: true,
        hidden: true,
        type: "/order/daasIndex", /**type用于页面左侧菜单的路由active效果判断 */
        authrole: 'system_admin'
      }
    },
  ]
};

export default order;
